package com.mycompany.tableOpe.dao;

import com.mycompany.tableOpe.entity.TableOpeBean;
import com.mycompany.tableOpe.mapper.TableOpeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/9/1 0001.
 */
@Repository("tabledao")
public class TableOpeDaoImpl implements TableOpeDao {

    @Autowired
    private TableOpeMapper tableOpeMapper;


    @Override
    public int addTable(TableOpeBean tableOpeBean) {
        return tableOpeMapper.addTable(tableOpeBean);
    }

    @Override
    public int updateTable(TableOpeBean tableOpeBean) {
        return tableOpeMapper.updateTable(tableOpeBean);
    }

    @Override
    public List<TableOpeBean> getAllTable() {
        return tableOpeMapper.getAllTable();
    }

    @Override
    public List<TableOpeBean> getAllTableByParam(Map<String,Object> map) {
        return tableOpeMapper.getAllTableByParam(map);
    }
}
